<% title "Create a New Project" %>

<h2>Create a New Project</h2>

<% form_for :project, :url => projects_path do |f| %>
   <%= f.hidden_field :company_id, :value => current_account.id %>
	<label>Name</label>
	<p><%= f.text_field :name %></p>
	<br>
	<label>Project manager</label>
	<p><%= f.collection_select(:project_manager, current_account.users, :id, :name) %></p>
	<br>
	<label>Description (optional)</label>
	<p><%= f.text_area :description %></p>
	<br><br>
	<%= f.submit 'Create a new project' %> or <%= link_to('cancel', projects_path) %>
<% end %>